//
//  CZTopItem.h
//  i0S007通用项目
//
//  Created by Apple on 16/2/20.
//  Copyright © 2016年 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CZTopItem;

/// 按钮被点击的代理
@protocol CZTopItemDelegate <NSObject>

/// 按钮被点击的代理方法
- (void)topItemClick:(CZTopItem *)topItem;

@end

/// 导航栏左边的view
@interface CZTopItem : UIView

/// 图片正常状态名称
@property (nonatomic, copy) NSString *icon;

/// 图片高亮状态名称
@property (nonatomic, copy) NSString *hIcon;

/// 主标题
@property (nonatomic, copy) NSString *title;

/// 子标题
@property (nonatomic, copy) NSString *subTitle;

/// 代理属性
@property (nonatomic, weak) id<CZTopItemDelegate> delegate;

+ (instancetype)topItemWithIcon:(NSString *)icon hightedIcon:(NSString *)hIcon title:(NSString *)title subTitle:(NSString *)subTitle;

- (instancetype)initWithIcon:(NSString *)icon hightedIcon:(NSString *)hIcon title:(NSString *)title subTitle:(NSString *)subTitle;
@end
